package com.silverbox.shopper.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.extend.InvoiceServiceInfo;

public interface InvoiceMapper {
	/**
	 * 查询是否已打印发票
	 * @param storeId
	 * @param orderNum
	 * @return
	 */
	Integer getIsOpenInvoice(@Param("storeId") Integer storeId, @Param("orderNum") String orderNum);
	
	/**
	 * 查询订购开发票服务信息
	 * @param storeId
	 * @return
	 */
	List<InvoiceServiceInfo> findInvoiceServiceInfo(@Param("storeId") Integer storeId);

    /**
     * 查询发票类型
     * @param storeId
     * @return
     */
	Integer findInvoiceType(@Param("storeId") Integer storeId);
}
